\doxysection{general\+\_\+def.\+h}
\hypertarget{general__def_8h_source}{}\label{general__def_8h_source}\index{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/modules/general\_def.h@{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/modules/general\_def.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#ifndef\ GENERAL\_DEF\_H}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#define\ GENERAL\_DEF\_H}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ \textcolor{comment}{//\ 一些module的通用数值型定义,注意条件macro兼容,一些宏可能在math.h中已经定义过了}}
\DoxyCodeLine{00005\ }
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#ifndef\ PI}}
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#define\ PI\ 3.1415926535f}}
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00009\ \textcolor{preprocessor}{\#define\ PI2\ (PI\ *\ 2.0f)\ }\textcolor{comment}{//\ 2\ pi}}
\DoxyCodeLine{00010\ }
\DoxyCodeLine{00011\ \textcolor{preprocessor}{\#define\ RAD\_2\_DEGREE\ 57.2957795f\ \ \ \ }\textcolor{comment}{//\ 180/pi}}
\DoxyCodeLine{00012\ \textcolor{preprocessor}{\#define\ DEGREE\_2\_RAD\ 0.01745329252f\ }\textcolor{comment}{//\ pi/180}}
\DoxyCodeLine{00013\ }
\DoxyCodeLine{00014\ \textcolor{preprocessor}{\#define\ RPM\_2\_ANGLE\_PER\_SEC\ 6.0f\ \ \ \ \ \ \ }\textcolor{comment}{//\ ×360°/60sec}}
\DoxyCodeLine{00015\ \textcolor{preprocessor}{\#define\ RPM\_2\_RAD\_PER\_SEC\ 0.104719755f\ }\textcolor{comment}{//\ ×2pi/60sec}}
\DoxyCodeLine{00016\ }
\DoxyCodeLine{00017\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ !GENERAL\_DEF\_H}}

\end{DoxyCode}
